<?php

namespace App\Models\CarModels;

use Illuminate\Database\Eloquent\Model;

class CarPath extends Model
{
    //
    protected $table = 'paths';
    protected $fillable = ['time','nodeid','lon','lat'];

    public function city(){
        return $this->belongsTo(CarCity::class,'city_id')->select('id','name');
    }

}
